package com.feng.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.feng.entity.Article;
import com.feng.entity.RestResponse;
import com.feng.entity.vo.ArticlePageReqVo;
import com.feng.entity.vo.ArticleWriteVo;
import com.feng.entity.vo.UpdateStatusReqVo;

import java.util.List;

/**
 * (Article)表服务接口
 *
 * @author feng
 * @since 2024-10-18 13:51:20
 */
public interface ArticleService extends IService<Article> {

    RestResponse writeArticle(ArticleWriteVo writeVo);

    RestResponse articleList(Integer current, Integer size, Long categoryId);

    RestResponse articleDetail(String id);

    RestResponse updateViewCount(String id);

    RestResponse getHotArticle();

    RestResponse myArticle(Integer current, Integer size, Long categoryId);

    RestResponse listAllArticle(ArticlePageReqVo articlePage);

    RestResponse getArticleById(String id);

    RestResponse updateArticle(ArticleWriteVo articleWriteVo);

    RestResponse updateStatus(UpdateStatusReqVo updateStatus);

    RestResponse deleteArticleById(String id);

    RestResponse deleteBatchArticle(List<String> ids);

    RestResponse searchArticle(Integer current, Integer size, String keyword);
}

